package com.pyue.eam.regi.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pyue.eam.admin.api.dto.SimpleUserInfo;
import com.pyue.eam.admin.api.dto.chart.ChartData;
import com.pyue.eam.admin.api.dto.chart.ChartSeries;
import com.pyue.eam.admin.api.dto.chart.PerformanceUrl;
import com.pyue.eam.admin.api.entity.regi.CqTaskCheck;
import com.pyue.eam.admin.api.entity.regi.CqTaskLibEntity;

import java.util.List;
import java.util.Map;

public interface CqTaskLibService extends IService<CqTaskLibEntity> {

    List<ChartSeries> arcbarData();

    ChartData columnData(Integer monthNum);

    Page<CqTaskLibEntity> datePage(Page page, CqTaskLibEntity cqTaskLib);

    CqTaskLibEntity getDataById(Long taskId);

    Boolean acceptCqTask(Long taskId);

    Boolean checkCqTask(CqTaskCheck cqTaskCheck);

    Long saveTask(CqTaskLibEntity cqTaskLib);

    Boolean appleCheckCqTask(CqTaskCheck cqTaskCheck);

    // Double cultCountPrice(CqTaskLibEntity cqTaskLib);

    Boolean updateDataById(CqTaskLibEntity cqTaskLib);

    /**
     * 企业接受方案
     *
     * @param taskId     任务id
     * @param taskPlanId 任务方案 id
     */
    Boolean acceptTaskPlan(Long taskId, Long taskPlanId);

    Map<String,Integer> getTaskNum();

    List<CqTaskLibEntity> topTask();

    /**
     * 设置页我的绩效
     */
    List<PerformanceUrl> performance();

    List<SimpleUserInfo> workersBindTask(Long taskId, String workIds);

}
